# Contributor: Petr Hodina <phodina@protonmail.com>
# Maintainer: Petr Hodina <phodina@protonmail.com>
pkgname=linux-openvfd
pkgver=0_git20220906
pkgrel=0
_gitrev=ac2d94c8f466d6d1d56b5dc818a342b0ce01a750
pkgdesc="FD628 and similar compatible LED controller driver for linux, service daemon"
url="https://github.com/arthur-liberman/linux_openvfd"
makedepends="linux-headers"
arch="aarch64"
license="GPL-2.0-or-later"
source="$pkgname-$_gitrev.tar.gz::https://github.com/arthur-liberman/linux_openvfd/archive/$_gitrev.tar.gz"
builddir="$srcdir/linux_openvfd-$_gitrev"
options="!check" # has no test suite

build() {
	make OpenVFDService
}

package() {
	install -Dm755 OpenVFDService -t "$pkgdir"/usr/bin/
}

sha512sums="
340f1102b61e81a126622f91802e11819ffe4ae1ae92542efaa20d2f26faff893bbc1efed9f406c0c6e4f3fcb9d386ce636de242c8677c5486bd27e98b967c64  linux-openvfd-ac2d94c8f466d6d1d56b5dc818a342b0ce01a750.tar.gz
"
